package entity;

import function.BookTypeBaseDao2Impl;
import function.Druid;
import service.BookTypeServiceDaoImpl;

import java.util.Date;

public class Book {

    private String ISBN;
    private int    type_id;
    private String type_name;
    private String book_name;
    private String author;
    private String publish;
    private Date   publish_date;
    private int    number;
    private float  unitPrice;


    public Book(String ISBN, int type_id, String book_name, String author, String publish, Date publish_date, int number, float unitPrice) {
        this.ISBN = ISBN;
        this.type_id = type_id;
        this.book_name = book_name;
        this.author = author;
        this.publish = publish;
        this.publish_date = publish_date;
        this.number = number;
        this.unitPrice = unitPrice;
    }


    public Book() {
    }

    public String getType_name() {
        return type_name;
    }

    public void setType_name(String type_name) {
        this.type_name = type_name;
    }

    public String getISBN() {
        return ISBN;
    }

    public void setISBN(String ISBN) {
        this.ISBN = ISBN;
    }

    public int getType_id() {
        return type_id;
    }

    public void setType_id(int type_id) {
        this.type_id = type_id;
    }

    public String getBook_name() {
        return book_name;
    }

    public void setBook_name(String book_name) {
        this.book_name = book_name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPublish() {
        return publish;
    }

    public void setPublish(String publish) {
        this.publish = publish;
    }

    public Date getPublish_date() {
        return publish_date;
    }

    public void setPublish_date(Date publish_date) {
        this.publish_date = publish_date;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public float getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(float unitPrice) {
        this.unitPrice = unitPrice;
    }

    @Override
    public String toString() {
        return "Book{" +
                "ISBN='" + ISBN + '\'' +
                ", type_id=" + type_id +
                ", type_name='" + type_name + '\'' +
                ", book_name='" + book_name + '\'' +
                ", author='" + author + '\'' +
                ", publish='" + publish + '\'' +
                ", publish_date=" + publish_date +
                ", number=" + number +
                ", unitPrice=" + unitPrice +
                '}';
    }

}
